/*
 *------------------------------------------------------------------------------
 * @File      :    ei_mai_isp_define.h
 * @Date      :    2021-4-8
 * @Author    :    lomboswer <lomboswer@lombotech.com>
 * @Brief     :    Media Interface for MADP(Media Development Platform).
 *
 * Copyright (C) 2020-2021, LomboTech Co.Ltd. All rights reserved.
 *------------------------------------------------------------------------------
 */

#ifndef __EI_MAI_ISP_DEFINE_H__
#define __EI_MAI_ISP_DEFINE_H__

#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif

#include "ei_comm_isp.h"
#include "ei_mai_comm_define.h"
#include "ei_mai_errno.h"

typedef enum eiEN_ISP_ERR_CODE_E
{
    MADP_EN_ISP_INVALID_FD = 0x40,
    MADP_EN_ISP_IOCTL_FAIL = 0x41,
    MADP_EN_ISP_OVERRANGE = 0x42,
    MADP_EN_ISP_NOT_INITED = 0x43,
    MADP_EN_ISP_NOT_STARTED = 0x44
}EN_ISP_ERR_CODE_E;

#define EI_MAI_ERR_ISP_OVERRANGE       EI_MADP_DEF_ERR(EI_MADP_MOD_ISP, MADP_EN_ERR_LEVEL_ERROR, MADP_EN_ISP_OVERRANGE)
#define EI_MAI_ERR_ISP_NOT_INITED      EI_MADP_DEF_ERR(EI_MADP_MOD_ISP, MADP_EN_ERR_LEVEL_ERROR, MADP_EN_ISP_NOT_INITED)
#define EI_MAI_ERR_ISP_NULL_PTR        EI_MADP_DEF_ERR(EI_MADP_MOD_ISP, MADP_EN_ERR_LEVEL_ERROR, MADP_EN_ERR_NULL_PTR)
#define EI_MAI_ERR_ISP_NOTREADY        EI_MADP_DEF_ERR(EI_MADP_MOD_ISP, MADP_EN_ERR_LEVEL_ERROR, MADP_EN_ERR_SYS_NOTREADY)
#define EI_MAI_ERR_ISP_INVALID_DEVID   EI_MADP_DEF_ERR(EI_MADP_MOD_ISP, MADP_EN_ERR_LEVEL_ERROR, MADP_EN_ERR_INVALID_DEVID)
#define EI_MAI_ERR_ISP_INVALID_CHNID   EI_MADP_DEF_ERR(EI_MADP_MOD_ISP, MADP_EN_ERR_LEVEL_ERROR, MADP_EN_ERR_INVALID_CHNID)
#define EI_MAI_ERR_ISP_EXIST           EI_MADP_DEF_ERR(EI_MADP_MOD_ISP, MADP_EN_ERR_LEVEL_ERROR, MADP_EN_ERR_EXIST)
#define EI_MAI_ERR_ISP_UNEXIST         EI_MADP_DEF_ERR(EI_MADP_MOD_ISP, MADP_EN_ERR_LEVEL_ERROR, MADP_EN_ERR_UNEXIST)
#define EI_MAI_ERR_ISP_NOT_SUPPORT     EI_MADP_DEF_ERR(EI_MADP_MOD_ISP, MADP_EN_ERR_LEVEL_ERROR, MADP_EN_ERR_NOT_SUPPORT)
#define EI_MAI_ERR_ISP_NOT_PERM        EI_MADP_DEF_ERR(EI_MADP_MOD_ISP, MADP_EN_ERR_LEVEL_ERROR, MADP_EN_ERR_NOT_PERM)
#define EI_MAI_ERR_ISP_NOMEM           EI_MADP_DEF_ERR(EI_MADP_MOD_ISP, MADP_EN_ERR_LEVEL_ERROR, MADP_EN_ERR_NOMEM)
#define EI_MAI_ERR_ISP_NOBUF           EI_MADP_DEF_ERR(EI_MADP_MOD_ISP, MADP_EN_ERR_LEVEL_ERROR, MADP_EN_ERR_NOBUF)
#define EI_MAI_ERR_ISP_ILLEGAL_PARAM   EI_MADP_DEF_ERR(EI_MADP_MOD_ISP, MADP_EN_ERR_LEVEL_ERROR, MADP_EN_ERR_ILLEGAL_PARAM)
#define EI_MAI_ERR_ISP_BUSY            EI_MADP_DEF_ERR(EI_MADP_MOD_ISP, MADP_EN_ERR_LEVEL_ERROR, MADP_EN_ERR_BUSY)
#define EI_MAI_ERR_ISP_BUF_EMPTY       EI_MADP_DEF_ERR(EI_MADP_MOD_ISP, MADP_EN_ERR_LEVEL_ERROR, MADP_EN_ERR_BUF_EMPTY)

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* #ifdef __cplusplus */

#endif /* __EI_MAI_ISP_DEFINE_H__ */
